cmus.git
5 months agoip/ffmpeg: fix building for ffmpeg 8.0
ihy123 [Sun, 24 Aug 2025 16:16:57 +0000 (19:16 +0300)]
ip/ffmpeg: fix building for ffmpeg 8.0

avcodec_close() can be safely removed because avcodec_free_context()
is its replacement since 2016. See ffmpeg commit 2ef6dab0a79

Builds with v3.3.9 v4.0.6 v6.1.3 v7.1.1 v8.0

Gbp-Pq: Name 0014-ip-ffmpeg-fix-building-for-ffmpeg-8.0.patch

5 months agoip/ffmpeg: improve readability
ihy123 [Mon, 18 Aug 2025 00:32:22 +0000 (03:32 +0300)]
ip/ffmpeg: improve readability

Previously ffmpeg_read()'s while loop was kinda leaking into
ffmpeg_get_frame(), now it doesn't.

Gbp-Pq: Name 0013-ip-ffmpeg-improve-readability.patch

5 months agoip/ffmpeg: don't process empty frames
ihy123 [Sun, 17 Aug 2025 16:22:50 +0000 (19:22 +0300)]
ip/ffmpeg: don't process empty frames

Gbp-Pq: Name 0012-ip-ffmpeg-don-t-process-empty-frames.patch

5 months agoip/ffmpeg: better frame skipping logic
ihy123 [Sun, 17 Aug 2025 14:27:20 +0000 (17:27 +0300)]
ip/ffmpeg: better frame skipping logic

Gbp-Pq: Name 0011-ip-ffmpeg-better-frame-skipping-logic.patch

5 months agoip/ffmpeg: reset swr_frame_start when seeking
ihy123 [Sun, 17 Aug 2025 12:54:19 +0000 (15:54 +0300)]
ip/ffmpeg: reset swr_frame_start when seeking

Gbp-Pq: Name 0010-ip-ffmpeg-reset-swr_frame_start-when-seeking.patch

5 months agoip/ffmpeg: remember swr_frame's capacity
ihy123 [Sun, 17 Aug 2025 12:02:34 +0000 (15:02 +0300)]
ip/ffmpeg: remember swr_frame's capacity

Gbp-Pq: Name 0009-ip-ffmpeg-remember-swr_frame-s-capacity.patch

5 months agoip/ffmpeg: flush swresample buffer when seeking
ihy123 [Sun, 17 Aug 2025 11:53:52 +0000 (14:53 +0300)]
ip/ffmpeg: flush swresample buffer when seeking

Gbp-Pq: Name 0008-ip-ffmpeg-flush-swresample-buffer-when-seeking.patch

5 months agoValidate sample format in ip_open()
ihy123 [Sun, 17 Aug 2025 11:28:46 +0000 (14:28 +0300)]
Validate sample format in ip_open()

To prevent segfault in ip_setup() because channels=0, validate ip_data->sf
after opening ip.

Gbp-Pq: Name 0007-Validate-sample-format-in-ip_open.patch

5 months agoip/ffmpeg: major refactor
ihy123 [Sun, 17 Aug 2025 01:05:36 +0000 (04:05 +0300)]
ip/ffmpeg: major refactor

Gbp-Pq: Name 0006-ip-ffmpeg-major-refactor.patch

5 months agoip/ffmpeg: remove excessive version checks
ihy123 [Fri, 15 Aug 2025 23:43:55 +0000 (02:43 +0300)]
ip/ffmpeg: remove excessive version checks

ffmpeg download page states that v4.0.6 has
- libavutil 56.14.100
- libavcodec 58.18.100
- libavformat 58.12.100
(https://ffmpeg.org/olddownload.html)

After removing all checks for versions lower than these, the plugin
still compiles with v3.3.9 headers.

After all, why be better with compatibility than developers themselves?

Gbp-Pq: Name 0005-ip-ffmpeg-remove-excessive-version-checks.patch

5 months agoip/ffmpeg: skip samples only when needed
ihy123 [Fri, 15 Aug 2025 18:42:19 +0000 (21:42 +0300)]
ip/ffmpeg: skip samples only when needed

Gbp-Pq: Name 0004-ip-ffmpeg-skip-samples-only-when-needed.patch

5 months agoip/ffmpeg: more precise seeking
ihy123 [Thu, 14 Aug 2025 09:44:10 +0000 (12:44 +0300)]
ip/ffmpeg: more precise seeking

av_seek_frame() and avformat_seek_file() seek to nearest "keyframe". For
codecs like, for example, ape this means that seeking will be very off
(5 seconds or more). So what we do is:
1. seek to nearest "keyframe" before the desired time,
2. discard some frames to approach the desired time.

Gbp-Pq: Name 0003-ip-ffmpeg-more-precise-seeking.patch

5 months agoUse hardening flags for Doc/ttman
Philippe SWARTVAGHER [Fri, 12 Sep 2025 21:00:35 +0000 (23:00 +0200)]
Use hardening flags for Doc/ttman

Forwarded: not-needed
Last-Update: 2025-03-16

Last-Update: 2025-03-16
Gbp-Pq: Name 0002-fix-blhc.patch

5 months agoPass LDLIBS to the linker
Ryan Kavanagh [Thu, 27 Jul 2023 18:59:47 +0000 (20:59 +0200)]
Pass LDLIBS to the linker

Origin: Debian
Bug-Debian: http://bugs.debian.org/935678
Forwarded: no
Reviewed-by: Ryan Kavanagh <rak@debian.org>
Last-Update: 2019-09-07

Needed to pass -latomic at the end so that we can fix a FTBFS on various
architectures.
Last-Update: 2019-09-07

Gbp-Pq: Name 0001-atomic_ld.patch

5 months agocmus (2.12.0-2) unstable; urgency=medium
Sebastian Ramacher [Fri, 12 Sep 2025 21:00:35 +0000 (23:00 +0200)]
cmus (2.12.0-2) unstable; urgency=medium

  * Team upload
  * Fix build with ffmpeg 8.0 (Closes: #1115013)

[dgit import unpatched cmus 2.12.0-2]

5 months agoImport cmus_2.12.0-2.debian.tar.xz
Sebastian Ramacher [Fri, 12 Sep 2025 21:00:35 +0000 (23:00 +0200)]
Import cmus_2.12.0-2.debian.tar.xz

[dgit import tarball cmus 2.12.0-2 cmus_2.12.0-2.debian.tar.xz]

11 months agoImport cmus_2.12.0.orig.tar.gz
Philippe SWARTVAGHER [Sat, 15 Mar 2025 21:56:48 +0000 (22:56 +0100)]
Import cmus_2.12.0.orig.tar.gz

[dgit import orig cmus_2.12.0.orig.tar.gz]